package org.example;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author luoqifeng
 */
@RestController
@RequestMapping("test")
public class testController {
    @Resource
    OkHttpUtil okHttpUtil;

    @GetMapping("testOkhttp")
    public String testOkhttp() {
        String s = okHttpUtil.get("https://www.baidu.com", null);
        return s;
    }
}
